
<fieldset>
  <legend>&nbsp;Book Report&nbsp;</legend>
  <table>
    <tr>
      <td>
        <form method="post" action="index.php?module=POBHotel&type=admin&func=report">
          Start Date : <!--[innova_html_select_date end_year=+1 field_order="DMY" prefix="start"]-->&nbsp;&nbsp;&nbsp;
          End Date : <!--[innova_html_select_date next_day=1 end_year=+1 field_order="DMY" prefix="end"]-->
          <input type="submit" value="submit">
        </form>
      </td>
    </tr>
  </table>
</fieldset>
<!--[if $openFirst == 2]-->
  <!--[if $objectArray ]-->
    <fieldset>
      <legend>&nbsp;Book Result&nbsp;</legend>
      <TABLE border="1" width="100%">
        <TR align="center">
           <TH>Customer Info</TH>
           <TH>
              <table width= "100%" border="0">
                <tr>
                  <td colspan="3" align="center">Room Info</td>
                </tr>
                <tr>
                  <td width="30%" align="center">RoomType</td>
                  <td width="50%">Check-in Check-out</td>
                  <td width="10%" align="left">Room</td>
                  <td width="10%" align="center">Guest</td>
                </tr>
              </table>
          </TH>
        </TR>
         <!--[foreach from=$objectArray.HotelReservations item=item]-->
          <TR>
             <TD>
                <b>Name</b> : <!--[$item.Customer.PersonName.NamePrefix]--><!--[$item.Customer.PersonName.GivenName]-->&nbsp;<!--[$item.Customer.PersonName.Surname]--><br>
                <b>Email</b> : <!--[$item.Customer.Email]--><br>
                <b>Address</b> : <!--[$item.Customer.Address.AddressLine]-->, <!--[$item.Customer.Address.CityName]-->, 
                <!--[$item.Customer.Address.StateProv]-->, <!--[$item.Customer.Address.CountryName]-->, <!--[$item.Customer.Address.PostalCode]--><br>
                <b>Telephone</b> : <!--[$item.Customer.Telephone.Telephone.PhoneNumber]--><br>
            </TD>
             <TD valign="top">
                <table width="100%" border="0">
              <!--[foreach from=$item.RoomStays item=itemRoomStays]-->
                  <tr>
                    <td width="30%" valign="top" align="center"><!--[$itemRoomStays.InvCode]--> </td>
                    <td width="50%" valign="top"><!--[$itemRoomStays.CheckInDate]--> - <!--[$itemRoomStays.CheckOutDate]--></td>
                    <td width="10%" valign="top" align="center"><!--[$itemRoomStays.NumberOfUnits]--></td>
                    <td width="10%" valign="top" align="center"><!--[$itemRoomStays.GuestCount.Count]--></td>
                  </tr>
              <!--[/foreach]-->
                </table>
            </TD>
          </TR>
        <!--[/foreach]-->
      </TABLE>
	  <div style="float:right;padding-top:10px;padding-right:10px;"><h2><a href="<!--[pnmodurl modname="POBHotel" type="admin" func="getReport" hotelcode="$hotelCode" filename="$fileName"]-->">Download This Report</a></h2></div>
    </fieldset>
  <!--[else]-->
    <table width="100%">
    <tr>
      <td><b><font color="#ff0000">There is no reserve on the date selected.</font></b></td>
    </tr>
    </table><br>
  <!--[/if]-->
<!--[else]-->
<br>
<!--[/if]-->

